﻿using ToolGood.Words;

namespace laohan.Common.Common
{
    public partial class API
    {
        /// <summary>
        /// 获得一个字符串的汉语拼音码(首字母) 
        /// </summary>
        /// <param name="strText"></param>
        /// <returns></returns>
        public static string GetChineseFirstSpell(string strText)
        {
            return WordsHelper.GetFirstPinyin(strText);
        }

        /// <summary>
        ///  获得一个字符串的汉语拼音码
        /// </summary>
        /// <param name="inputStr"></param>
        /// <returns></returns>
        public static string GetChineseFullSpell(string inputStr)
        {
            return WordsHelper.GetPinyin(inputStr);
        }
    }
}